package com.example.demo.service;

import com.example.demo.entity.Chapter;

import java.util.List;

public interface ChapterService {
    /**
     * 增加章节
     * */
    public int insertchapter(String chapter_name,Integer chapter_type,Integer chapter_node);
    /**
     * 章节查询
     * */
    public List<Chapter> selchapter1();
    public List<Chapter> selchapter();
    public Chapter selone(Integer chapter_id);
    /**
     * 单章节所属章节查询
     * */
    public Chapter selonecha(Integer chapter_id);
    public Chapter selnodes(Integer chapter_id);
    /**
     * 章节名查询
     * */
    public Chapter selcnm(Integer chapter_id);
    /**
     * 父级章节查询
     * */
    public List<Chapter> selfath();
    /**
     * 更改章节
     * */
    public int updtchapter(String chapter_name,Integer chapter_type,Integer chapter_id);
    /**
     * 删除章节(父级目录+子目录)
     * */
    public int delchapter(Integer chapter_id);
    /**
     * 删除子目录
     * */
    public int delone(Integer chapter_id);
    /**
     * 更改章节状态
     * */
    public int updtchatype(Integer chapter_type,Integer chapter_id);
}
